package cc.comac.mom.util;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * indicate it could export as excel column
 */
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface ExcelColumn {

    /**
     * Excel localized column name
     */
    String text();

    /**
     * tags of the column, then it could export by tags
     */
    String[] tags() default "";

    /**
     * type
     */
    Class type() default String.class;
}
